package com.rpay.service.user;

import com.rpay.common.dto.user.UserDTO;

import java.util.List;
import java.util.Map;

/**
 * Title：
 * Description
 *
 * @author fxg06 on 2018/4/20
 * @version 1.0
 */
public interface IUserService {

    UserDTO getUserByAccount(String account);

    boolean saveUser(UserDTO userDTO);

    boolean updateUser(UserDTO userDTO);

    UserDTO getUserById(Integer userId);

    UserDTO getUserByShareCode(String shareCode);

    List<UserDTO> getAllUser(String teamKey);

    List<UserDTO> getAllUserByRootUser(UserDTO rootUser);

    boolean upgrade(Integer userId);

    List<UserDTO> listUserByParentId(Integer parentId);

//    List<Map> findUserTreeList(UserDTO rootUser, int deep);
}
